<template>
  <div>
    <div>
      <el-input class="q" placeholder="请输入内容"></el-input
      ><el-button type="info" icon="el-icon-search">搜索</el-button>
      <el-button class="q1" type="primary">添加用户</el-button>
    </div>
    <div>
      <el-table :data="tableData" border style="width: 100%">
        <el-table-column prop="date" label="#" width="100"> </el-table-column>
        <el-table-column prop="name1" label="姓名" width="200">
        </el-table-column>
        <el-table-column prop="name1" label="邮箱"> </el-table-column>
        <el-table-column prop="name1" label="电话"> </el-table-column>
        <el-table-column prop="name1" label="角色" width="200">
        </el-table-column>
        <el-table-column prop="name1" label="状态" width="200">
        </el-table-column>
        <el-table-column prop="name1" label="操作" width="200">
        </el-table-column>
      </el-table>
    </div>
    <div>
      <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="currentPage4"
        :page-sizes="[1, 2, 3, 4]"
        :page-size="100"
        layout="total, sizes, prev, pager, next, jumper"
        :total="400"
      >
      </el-pagination>
    </div>
    <br />
    <el-button @click="$router.back()">返回</el-button>
  </div>
</template>
<script>
export default {
  name: "NotFound",
  data() {
    return {
      currentPage1: 5,
      currentPage2: 5,
      currentPage3: 5,
      currentPage4: 4,
      input: "",
      tableData: [
        {
          date: "2016-05-02",
          name1: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        },
        {
          date: "2016-05-04",
          name1: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄",
        },
        {
          date: "2016-05-01",
          name1: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄",
        },
        {
          date: "2016-05-03",
          name1: "王小虎",
          address: "上海市普陀区金沙江路 1516 弄",
        },
      ],
    };
  },
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
  },
};
</script>
<style lang="scss">
.q {
  width: 500px !important;
}
.q1 {
  margin-left: 30px !important;
}
</style>